package data;

import util.ImportFile;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/*
 * 乘客类（乘客基因）
 * number:乘客数目
 * width:乘客宽度
 * LRRVal:乘客高度值（拷贝数数值）
 * flag:判断是否染色体长度
 *
 * */
public class Passengers {
    private int number;
    private int width;
    private double value;
    private boolean flag;

    public Passengers() {
    }

    public Passengers(int number, int width, double LRRVal, boolean flag) {
        this.number = number;
        this.width = width;
        this.value = LRRVal;
        this.flag = flag;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public double getValue() {
        return value;
    }

    public void setValue(double value) {
        this.value = value;
    }

}
